newBuilder

open fun newBuilder(id: Int, screenPosition: Point, state: State): TouchPoint.Builder

Creates a new TouchPoint builder with the given required parameters.

Return

a new TouchPoint.Builder instance

Parameters

id

An identification number for each touch point. When a touch point becomes active, it must be assigned an identifier that is distinct from any other active touch point. While the touch point remains active, all events that refer to it must assign it the same identifier.

screenPosition

The location on the screen.